package com.ctg.behavior.common.event;

import java.util.ArrayList;
import java.util.List;

import com.ctg.behavior.common.calc.CtCalcCommonBody;
import com.ctg.behavior.common.calc.CtCalcMeasure;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
public class CtEventCalcBody extends CtCalcCommonBody {

//	/*	
//	 	"measures": [
//	 	],
//	   	"compareFromDate": "2021-06-02",
//		"compareToDate": "2021-06-02",
//	   	"fromDate": "2021-06-02",
//		"toDate": "2021-06-02",
//		"unit": "day",
//		"byFields": [],
//		"requestId": "1622566301953:788160"
//	 */

	private List<CtCalcMeasure> measures = new ArrayList<>();

	/*** 下面两字段移到CtCalcCommonBody ***/
//	// 格式：YYYY-MM-DD
//	private String fromDate;
//	// 格式：YYYY-MM-DD
//	private String toDate;
	
	// 格式：YYYY-MM-DD
	private String compareFromDate;
	// 格式：YYYY-MM-DD
	private String compareToDate;
//	private String unit;
//	private String requestId;
	private List<String> byFields = new ArrayList<>();
//	// appId
//	private String appId;

}
